<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <meta charset="utf-8" />
        <title>CRM</title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN PLUGIN CSS -->
        <link href="<?php echo $this->PLUGIN_PATH; ?>pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-tag/bootstrap-tagsinput.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>jquery-slider/css/jquery.sidr.light.css" rel="stylesheet" type="text/css" media="screen"/>
        
        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-wysihtml5/bootstrap-wysihtml5.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>jquery-datatable/css/jquery.dataTables.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>boostrap-checkbox/css/bootstrap-checkbox.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-colorpicker/css/bootstrap-colorpicker.css" rel="stylesheet" type="text/css" />

        <!-- END PLUGIN CSS -->
        <!-- BEGIN CORE CSS FRAMEWORK -->
        <link href="<?php echo $this->PLUGIN_PATH; ?>boostrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>boostrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-select2/select2.css" rel="stylesheet" type="text/css" media="screen"/>
        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-datepicker/css/datepicker.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $this->PLUGIN_PATH; ?>boostrap-clockpicker/bootstrap-clockpicker.min.css" rel="stylesheet" type="text/css" />

        <link href="<?php echo $this->PLUGIN_PATH; ?>bootstrap-timepicker/css/bootstrap-timepicker.css" rel="stylesheet" type="text/css" />
        

        <link href="<?php echo $this->PLUGIN_PATH; ?>font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->CSS_PATH; ?>animate.min.css" rel="stylesheet" type="text/css"/>
        <!-- END CORE CSS FRAMEWORK -->
        <!-- BEGIN CSS TEMPLATE -->
        <link href="<?php echo $this->CSS_PATH; ?>style.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->CSS_PATH; ?>responsive.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->CSS_PATH; ?>custom-icon-set.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $this->CSS_PATH; ?>custom.css" rel="stylesheet" type="text/css"/>




        <!-- END CSS TEMPLATE -->
    </head>
    <script>
        var BASE_PATH = '<?php echo BASE_PATH; ?>';
		var ADMIN_URL = '<?php echo $this->ADMIN_URL; ?>';
        var SITE_URL = '<?php echo $this->BASE_URL . ""; ?>';
        var MAP_DEFAULT_LAYOUT = '<?php echo $this->MAP_DEFAULT_LAYOUT ?>';
    </script>

    <!-- BEGIN BODY -->
    <body class="">
        <!-- BEGIN HEADER -->
        <div class="header navbar navbar-inverse "> 
            <!-- BEGIN TOP NAVIGATION BAR -->
            <div class="navbar-inner">
                <div class="header-seperation"> 
                    <ul class="nav pull-left notifcation-center" id="main-menu-toggle-wrapper" style="display:none">	
                        <li class="dropdown"> <a id="main-menu-toggle" href="#main-menu"  class="" > 
                                <div class="iconset top-menu-toggle-white"></div> </a> </li>		 
                    </ul>
                    <!-- BEGIN LOGO -->

                    <a href="<?php echo $this->BASE_URL; ?>">

                        <!--<img src="<?php echo $this->IMAGE_PATH; ?>logo.png" class="logo" alt=""  /></a>-->
                    <!-- END LOGO --> 

                </div>
                <!-- END RESPONSIVE MENU TOGGLER --> 
                <div class="header-quick-nav" > 
                    <!-- BEGIN TOP NAVIGATION MENU -->
                    <!-- BEGIN CHAT TOGGLER -->
                    <div class="pull-right">
                        <!--<div class="chat-toggler">
                            <a href="#" class="dropdown-toggle" id="my-task-list" style="cursor: auto" >
                                <div class="user-details">
                                    <div class="username">
                                        <?php echo $this->user->mem_name; ?> 
                                        <span class="bold"><?php echo $this->user->mem_surname; ?></span>
                                    </div>
                                </div>
                                &nbsp;&nbsp;
                            </a>
                            <div class="profile-pic">
                                <?php
                                if ($this->user->profile_image != '' && $this->user->oauth_provider != 0) {
                                    $src = $this->user->profile_image;
                                } else if ($this->user->profile_image != '' && $this->user->oauth_provider == 0) {
                                    $src = $this->PUBLIC_PATH . "upload/member/profile/" . $this->user->profile_image;
                                } else {
                                    $src = $this->PUBLIC_PATH . "img/profiles/avatar.jpg";
                                }
                                ?>
                                <img src="<?php echo $src; ?>"  alt="" data-src="<?php echo $src; ?>" data-src-retina="<?php echo $src; ?>" width="35" height="35" />
                            </div>
                        </div>-->
                        <ul class="nav quick-section ">
                            <li class="quicklinks">
                                <a data-toggle="dropdown" class="dropdown-toggle  pull-right " href="#" id="user-options">
                                    <div class="iconset top-settings-dark "></div>
                                </a>
                                <ul class="dropdown-menu  pull-right" role="menu" aria-labelledby="user-options">
                                    <!--<li><a href="<?php echo $this->url(array('module' => 'default', 'controller' => 'member', 'action' => 'form'), null, TRUE); ?>">&nbsp;&nbsp;Add member</a></li>
                                    <li><a href="<?php echo $this->url(array('module' => 'default', 'controller' => 'property', 'action' => 'form'), null, TRUE); ?>">&nbsp;&nbsp;Add property</a></li>-->
                                    <li><a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'logout', 'action' => 'index'), null, TRUE); ?>"><i class="fa fa-power-off"></i>&nbsp;&nbsp;Log Out</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!-- END CHAT TOGGLER -->
                    <!-- END TOP NAVIGATION MENU -->
                </div> 
                <!-- END TOP NAVIGATION MENU --> 

            </div>
            <!-- END TOP NAVIGATION BAR --> 
        </div>

        <!-- END HEADER --> 
        <!-- BEGIN CONTAINER -->
        <div class="page-container row"> 
            <!-- BEGIN SIDEBAR -->
            <div class="page-sidebar" id="main-menu">
                <!-- BEGIN MINI-PROFILE -->
                <div class="page-sidebar-wrapper" id="main-menu-wrapper">
                    <!-- END MINI-PROFILE -->
                   
                    <div class="user-info-wrapper">
                        <div class="profile-wrapper"> 
                            <img width="69" height="69" data-src-retina="<?php echo $src; ?>" data-src="<?php echo $src; ?>" alt="" src="<?php echo $src; ?>"> </div>
                        <div class="user-info">
                            <div class="greeting">Welcome</div>
                            <div class="username"><?php //echo ucfirst($this->user->member_username); ?> 
                               <!-- <span class="semi-bold"><?php echo ucfirst($this->user->mem_surname); ?></span>-->
                            </div>

                        </div>
                    </div>

                    <!-- BEGIN SIDEBAR MENU -->
                    <p class="menu-title">
                        <span class="pull-right">
                            &nbsp;
                        </span>
					</p>

					<br/>
                    <ul>
                        
                        <!-- CLIENT MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'client', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-users"></i> <span class="title">Client</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'client', 'action' => 'form'), null, TRUE); ?>">Add Client </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'client', 'action' => 'list'), null, TRUE); ?>">
                                        Client Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<!-- COMPANY MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'company', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-laptop"></i> <span class="title">Company</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'company', 'action' => 'form'), null, TRUE); ?>">Add Company </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'company', 'action' => 'list'), null, TRUE); ?>">
                                        Company Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<!-- DEAL MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'deals', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-pencil-square"></i> <span class="title">Deal</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'deals', 'action' => 'form'), null, TRUE); ?>">Add Deal </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'deals', 'action' => 'list'), null, TRUE); ?>">
                                        Deal Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<!-- QUOTE MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'quotes', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-ticket"></i> <span class="title">Quote</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'quotes', 'action' => 'form'), null, TRUE); ?>">Add Quote </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'quotes', 'action' => 'list'), null, TRUE); ?>">
                                        Quote Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<!-- INVOICE MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'invoice', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-money"></i> <span class="title">Invoice</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'invoice', 'action' => 'form'), null, TRUE); ?>">Add Invoice </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'invoice', 'action' => 'list'), null, TRUE); ?>">
                                        Invoice Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<!-- LEAD MENU-----> 
                        <li class="start"> 
                            <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'lead', 'action' => 'index'), null, TRUE); ?>">
                                <i class="fa fa-pencil-square"></i> <span class="title">Lead</span> <span class="selected"></span> <span class="arrow"></span> </a> 
                            <ul class="sub-menu">
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'lead', 'action' => 'form'), null, TRUE); ?>">Add Lead </a> 
                                </li>
                                <li> 
                                    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'lead', 'action' => 'list'), null, TRUE); ?>">
                                        Lead Listing</a>
                                </li>
                            </ul>
                        </li>
						
						<li class="start"> <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'logout', 'action' => 'index'), null, TRUE); ?>"> <i class="fa fa-power-off"></i> <span class="title">Log out</span> <span class="selected"></span> </a> 
                        </li>

                    </ul>
                    <div class="clearfix"></div>
                    <!-- END SIDEBAR MENU -->
                </div>
            </div>


            <!-- END SIDEBAR --> 
            <!-- BEGIN PAGE CONTAINER-->
            <div class="page-content">
                <?php echo $this->layout()->content; ?>
            </div>

            <?php echo $this->partial('partial/modal.phtml'); ?>

        </div>
        <!-- END CONTAINER -->
        <!-- BEGIN CORE JS FRAMEWORK-->

        <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
        <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
    
        <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-1.8.3.min.js" type="text/javascript"></script>
                    <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-morris-chart/js/morris.min.js"></script>

        
        <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
        <script src="<?php echo $this->PLUGIN_PATH; ?>boostrapv3/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="<?php echo $this->PLUGIN_PATH; ?>breakpoints.js" type="text/javascript"></script>
        <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script>
        <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-block-ui/jqueryblockui.js" type="text/javascript"></script> 

        <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script> 



                <!-- END CORE JS FRAMEWORK -->
                <!-- BEGIN PAGE LEVEL JS -->

            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-slider/jquery.sidr.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-block-ui/jqueryblockui.js" type="text/javascript"></script> 
            <script src="<?php echo $this->PLUGIN_PATH; ?>pace/pace.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-scrollbar/jquery.scrollbar.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-numberAnimate/jquery.animateNumbers.js" type="text/javascript"></script>

            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-slider/jquery.sidr.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
            
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-datepicker/js/bootstrap-datepicker.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-timepicker/js/bootstrap-timepicker.min.js" type="text/javascript"></script><script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-select2/select2.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-wysihtml5/wysihtml5-0.3.0.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-wysihtml5/bootstrap-wysihtml5.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-colorpicker/js/bootstrap-colorpicker.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>boostrap-form-wizard/js/jquery.bootstrap.wizard.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>bootstrap-tag/bootstrap-tagsinput.min.js" type="text/javascript"></script>
            <script src="<?php echo $this->PLUGIN_PATH; ?>boostrap-clockpicker/bootstrap-clockpicker.min.js" type="text/javascript"></script>





            <!-- END PAGE LEVEL PLUGINS -->
            <!-- PAGE JS -->
            <script src="<?php echo $this->JS_PATH; ?>tabs_accordian.js" type="text/javascript"></script>

            <!-- BEGIN CORE TEMPLATE JS -->
            <script src="<?php echo $this->JS_PATH; ?>core.js" type="text/javascript"></script>
            <script src="<?php echo $this->JS_PATH; ?>demo.js" type="text/javascript"></script>
            <script src="<?php echo $this->JS_PATH; ?>general.js" type="text/javascript"></script>
			<link href="<?php echo $this->PLUGIN_PATH; ?>dropzone/dropzone.css" rel="stylesheet" type="text/css"/>
			<script src="<?php echo $this->PLUGIN_PATH; ?>dropzone/dropzone.js" type="text/javascript"></script>

            <?php
                echo $this->headScript();
            ?>
            <!-- END CORE TEMPLATE JS -->
        </body>
    </html>
    
    
    